package com.cyzy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyzy.dao.UserRole;
import com.cyzy.pojo.Contract;
import com.cyzy.pojo.Course;
import com.cyzy.pojo.Seckill;
import com.cyzy.pojo.SeckillJoin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CampusService {



    //分页查询合同记录
    Page<Contract> selectContractByUserId(Long userId, Long pageSize, Long pageNum,Double contractAmount,
                                          String paymentStatus,String startDate,String endDate,String signTime);

    //分页查询秒杀活动记录
    Page<SeckillJoin> getAllSecKill(Long userId, Long pageSize, Long pageNum);

    //新增一个秒杀活动申请
    int insertSecKill(Seckill seckill);

    //申请秒杀活动表单时通过campusId查询校区名称
    String queryCampusNameWhenSecKill(Long campusId);

    //通过校区ID查找该校区所有正常的课程
    List<Course> queryAllCourseByCampusId(Long campusId, Integer type);


}
